import { getCurrentInstance, defineComponent, ComponentInternalInstance } from "vue";
import { IotStore } from "@/stores/modules/iot";
export default defineComponent({
	emits: [],
	setup() {
		const { proxy } = getCurrentInstance() as ComponentInternalInstance;
		const iotStore = IotStore();
		return () => {
			return (
				<div
					onClick={() => iotStore.changeDetailSize()}
					class={`toggle-detail-size iconfont ${iotStore.isMaxDetail ? "iconchevrons-down" : "iconchevrons-up"}`}
					title={`${iotStore.isMaxDetail ? proxy?.$t("mintoggle.btn.retract") : proxy?.$t("mintoggle.btn.expand")}`}
				></div>
			);
		};
	}
});
